package cn.flyingocean;

import java.util.ArrayList;
import java.util.Calendar;

public class Main {
	public static void main(String[] args) {
		StockInfo sif = new StockInfo();
		ArrayList<StockInfo> siArray = new ArrayList<StockInfo>();


		//数据读取
		sif.pullFromFile(siArray);
		if (siArray.get(0) != null) {
			System.out.println("数据读取成功");
		}

		//数据排序
		sif.descending(siArray);
		System.out.println("排序成功");

		//写入文件中

		System.out.printf( "成功写入%d条数据",sif.pushIntoFile(siArray) );



	}

}
